KERNELDIR ?= /lib/modules/$(shell uname -r)/build

PWD := $(shell pwd)/kernel

obj-m := demo.o

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean